package com.xxk.rocket.star.core.dto;

import com.xxk.rocket.star.core.utils.StringUtils;
import lombok.Data;

@Data
public class StargateMapperDTO {

  private String group = "";
  private String topic = "";
  private String tag = "";

  public void addGroup(String group) {
    if (StringUtils.isEmpty(this.group)) {
      this.group = group;
    } else {
      this.group = this.group + "-" + group;
    }
  }

  public void addTopic(String topic) {
    if (StringUtils.isEmpty(this.topic)) {
      this.topic = topic;
    } else {
      this.topic = this.topic + "-" + topic;
    }
  }

}
